import Taro, { Component, request,redirectTo } from '@tarojs/taro'
import { View, Button, Text, Image } from '@tarojs/components'
import { imgUrl } from '../../config'
import './photo.scss'


class Photo extends Component {

//   config = {
//     navigationBarTitleText: '首页'
//   }
  constructor (props) {
    super(props)
    this.state = { 
 
     }
  }
  close(){
    redirectTo({
        url: '/pages/index/index'
      })
 }
 goCyht(){
    redirectTo({
        url: '/pages/cyht/cyht'
      })
 }
  render () {
    return (
      <View className='index'>
        <View className='head'>
            <Text className='close' onClick={this.close}>X</Text>
            <Text className='name'>相册</Text>
            <Text className='file' onClick={this.goCyht}>上传</Text>
        </View>
        <View className='cont'>
            <Image src={`${imgUrl}/pai.png`} />
            <Image src={`${imgUrl}/addPhoto.png`} />
        </View>
      </View>
    )
  }
}

